import urllib
import bs4
import re

def getArticleList(url):	
	article_list = []
	from urllib import error, request
	try:
		req = request.urlopen(url=url)
		content = req.read()
	except error.HTTPError as err:
		print(err)
		return article_list

	"""
	:type: bs4.BeautifulSoup
	"""

	bsobj = bs4.BeautifulSoup(content,"html.parser")

	mbanner = bsobj.find_all("div",class_="m-banner")

	ul = bsobj.find_all("ul",class_="role-main",recursive=True)

	ulStr = ul[0]
	
	li = ulStr.find_all("li")

	for item in li:
		print(item.a["title"] + " " + item.a["href"])
	

getArticleList('http://www.cocoachina.com')